// uno.config.js
import { defineConfig, presetUno } from 'unocss'
import transformerVariantGroup from '@unocss/transformer-variant-group'
import transformerDirectives from '@unocss/transformer-directives'

export default defineConfig({
  presets: [
    presetUno() // 添加 UnoCSS 的默认样式预设
  ],
  // content: {
  //   pipeline: {
  //     include: [
  //       // the default
  //       /\.(vue|svelte|[jt]sx|mdx?|astro|elm|php|phtml|html)($|\?)/,
  //       // include js/ts files
  //       'src/**/*.{js,ts}'
  //     ],
  //     // exclude files
  //     exclude: ['node_modules/**/*', '.git/**/*']
  //   }
  // },
  transformers: [transformerVariantGroup(), transformerDirectives()],
  // shortcuts
  shortcuts: [
    {
      'flex-c-c': 'flex flex-justify-center flex-items-center'
    }
  ]
})
